/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
package goodenglish.domain.model.lexicon;


import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * 
 * @author 关攀攀 panpan_001@126.com
 */
public class StudyInfo {

	private static Log logger = LogFactory.getLog(StudyInfo.class);
	private String id;
	private NewWord newWord;
	// 是否已完成
	private boolean done;
	private int rightCount;

	public StudyInfo() {
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}

	public boolean isDone() {
		return done;
	}

	public void setDone(boolean done) {
		this.done = done;
	}

	public int getRightCount() {
		return rightCount;
	}

	public void setRightCount(int rightCount) {
		this.rightCount = rightCount;
	}

	public void addRightCount() {
		this.rightCount = rightCount + 1;
	}

	public void addWrongCount() {
		this.rightCount = rightCount - 1;
	}

	public void setNewWord(NewWord newWord) {
		this.newWord = newWord;
	}

	public NewWord getNewWord() {
		return newWord;
	}

}
